package com.xcj.juhe.tool;

import java.util.Date;
import java.util.Random;
import java.util.UUID;

/**
 * @author xcj
 * @date 2021/1/8 15:22
 */
public class DeviceTool {

    public String makeDeviceId(){
        String val = "";
        Random random = new Random();
        for (int i = 0; i < 10; i++) {
            val += String.valueOf(random.nextInt(10));
        }
        return "deviceId_"+UUID.randomUUID().toString()+"_"+val;
    }

}
